# -*- coding:utf-8 -*-
from django.db import models


class WXAutoReply(models.Model):
    class Meta:
        verbose_name = verbose_name_plural = u'自动回复'
    keyword = models.CharField(max_length=128, unique=True)
    reply = models.CharField(max_length=255, default='', blank=True)

    request_num = models.IntegerField(default=0)

    created_time = models.DateTimeField(auto_now_add=True)
    last_modified = models.DateTimeField(auto_now=True)

    status = models.IntegerField(default=0, choices=[(0, u'正常'), (1, u'已删除')])

    def __unicode__(self):
        return self.keyword
